#ifndef __USART_H
#define __USART_H

#include "stm32f10x.h" 
#include "stdio.h" 


//120*100
#pragma pack(1)
typedef struct 
{
	uint8_t cx;
	uint8_t cy;
}recv_t;
#pragma pack()


extern recv_t ball;


void usart_init(u32 bound);
void usart_sendByte( USART_TypeDef * pUSARTx, uint8_t ch);
void usart_sendString( USART_TypeDef * pUSARTx, char *str);

#endif //__USART_H


